package com.wiscamp.ninechapters.problems.domain.models.problems.questions;

import com.wiscamp.ninechapters.problems.domain.models.problems.answers.Answer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.Collection;

/**
 * 推理证明问题
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ProveQuestion extends Question {
    /**
     * 答案列表
     * 存储多种证明方法
     */
    private Collection<Answer> answers = new ArrayList<>();

    public ProveQuestion() {
        this.hasMultipleAnswers = true;
    }

    @Override
    public void setCurrentAnswers(Collection<Answer> answers) {
        this.answers = answers;
    }

    @Override
    public Collection<Answer> getCurrentAnswers() {
        return this.answers;
    }
}
